package com.temi.iot.common.constant.result;

import com.temi.iot.exception.BizExceptionEnum;
import com.temi.iot.exception.BussinessException;

/**
 * Created by
 *
 * @author sheng
 * @date 18/3/16.
 */
public class Error extends AbstractResult {

    public Error(BussinessException ex) {
        this.code = ex.getCode();
        this.msg = ex.getMsg();
    }

    public Error(BizExceptionEnum exceptionEnum) {
        this.code = exceptionEnum.getCode();
        this.msg = exceptionEnum.getMsg();
    }
}
